package com.dhc.redpacket.service;

import com.dhc.redpacket.pojo.RedPacket;

public interface RedPacketService {
  /**
   * 获取红包信息
   *
   * @param id 红包id
   * @return 红包的具体信息
   */
  public RedPacket getRedPacket(Long id) throws Exception;

  /**
   * 扣减红包数
   *
   * @param id 红包id
   * @return 更新记录数
   */
  public int decreaseRedPacket(Long id) throws Exception;
}
